package com.xiaoxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoxx.model.entity.sys.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * base--sys--菜单管理 Mapper 接口
 * </p>
 *
 * @author HX
 * @since 2023-07-27
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {


    List<SysMenu> getMenuByAuth(@Param("userId") String userId);


    List<SysMenu> findByRoleId(String roleId);
}
